package com.jvxb.manage.livable.entity;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;

/**
 * @author jvxb
 * @since 2022-01-11
 */
@Data
@TableName("db_deploy_info")
public class DbDeployInfo implements Serializable {

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 工单标题
     */
    private String title;
    /**
     * 数据库类型
     */
    private String dbType;
    /**
     * 环境
     */
    private String env;
    /**
     * 机房
     */
    private String idcCode;
    /**
     * 版本
     */
    private String version;
    /**
     * 架构类型 基础版standard 集群版cluster
     */
    private String archType;
    /**
     * 套餐
     */
    private String packageName;
    /**
     * 集群名称
     */
    private String clusterName;
    /**
     * 工单描述
     */
    private String createDesc;
    /**
     * 工单id
     */
    private Long workOrderId;
    /**
     * 集群id
     */
    private Integer clusterId;
    /**
     * 声请人
     */
    private String creator;
    /**
     * 预留参数1
     */
    private String param1;
    /**
     * 预留参数2
     */
    private String param2;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    public static final String ID = "id";

    public static final String TITLE = "title";

    public static final String DB_TYPE = "db_type";

    public static final String ENV = "env";

    public static final String IDC = "idc";

    public static final String VERSION = "version";

    public static final String PACKAGE_NAME = "package_name";

    public static final String DESC_INFO = "desc_info";

    public static final String WORK_ORDER_ID = "work_order_id";

    public static final String CLUSTER_ID = "cluster_id";

    public static final String PARAM1 = "param1";

    public static final String PARAM2 = "param2";

    public static final String CREATE_TIME = "create_time";

    public static final String UPDATE_TIME = "update_time";

    private static final long serialVersionUID = -8668280054902243393L;
}
